//
//  StockInOutCell.swift
//  TestAPIManager
//
//  Created by yq on 2020/10/20.
//  Copyright © 2020 杨庆. All rights reserved.
//

import UIKit
import IBAnimatable
import RxSwift

class StockInOutCell: UITableViewCell,Ynibloadable,Yidentifier,XReusable,YNibLoadable {

    var checkDetailEvent:(()->())?
    
    private let cellHeight: CGFloat = 201
    
    @IBOutlet weak var checkDetailBtn: AnimatableButton!
    
    /// 缓存池取出 cell
    /// - Parameters:
    ///   - tableView: 自定义的 TableView
    ///   - indexPath: indexPath
    func dequeueCell(_ tableView:UITableView,_ indexPath:IndexPath) ->Self {
        return tableView.dequeueReusableCell(StockInOutCell.self, for: indexPath) as! Self
    }

    override var intrinsicContentSize: CGSize {
        return CGSize(width: YscreenWidth, height: cellHeight)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()

    }

    @IBAction func checkDetail() {
        checkDetailEvent?()
    }
    
}
